<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
    }
    
    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }
    
    .sm-st-info {
        font-size: 12px;
        padding-top: 2px;
    }
    
    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }
    
    .orange {
        background: #fa8564 !important;
    }
    
    .tar {
        background: #45cf95 !important;
    }
    
    .sm-st .green {
        background: #86ba41 !important;
    }
    
    .pink {
        background: #AC75F0 !important;
    }
    
    .yellow-b {
        background: #fdd752 !important;
    }
    
    .stat-elem {
        background-color: #fff;
        padding: 18px;
        border-radius: 40px;
    }
    
    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }
    
    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .st-red {
        background-color: #F05050;
    }
    
    .st-green {
        background-color: #27C24C;
    }
    
    .st-violet {
        background-color: #7266ba;
    }
    
    .st-blue {
        background-color: #23b7e5;
    }
    
    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }
    
    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        margin-right: 10px;
    }
    
    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }
    
    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }
    
    .stat.lg .name {
        font-size: 16px;
    }
    
    .stat-col .progress {
        height: 2px;
    }
    
    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }
    
    .item {
        padding: 30px 0;
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null, false)}
        <ul class="nav nav-tabs">
            <li class="active"><a href="#nday" data-toggle="tab">{:__('nday')}</a></li>
            <li><a href="#nweek" data-toggle="tab">{:__('nweek')}</a></li>
            <li><a href="#n1" data-toggle="tab">{:__('n1')}</a></li>
            <li><a href="#n2" data-toggle="tab">{:__('n2')}</a></li>
            <li><a href="#n3" data-toggle="tab">{:__('n3')}</a></li>
            <li><a href="#n4" data-toggle="tab">{:__('n4')}</a></li>
            <li><a href="#nmonth" data-toggle="tab">{:__('nmonth')}</a></li>
            <li><a href="#nall" data-toggle="tab">{:__('nall')}</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="nday">

                <div class="table-responsive">
                    {// 有值则输出,没有值 不输出}
                    {if condition="$info"} 
                        <table class="table table-bordered">
                            <thead>
                                <th>病种</th>
                                <th>消费</th>
                                <th>均价</th>
                                <th>点击量</th>
                                <th>展现量</th>
                                <th>点击率</th>
                                <th>对话</th>
                                <th>有效对话</th>
                                <th>预约率</th>
                                <th>到诊率</th>
                                <th>对话成本</th>
                                <th>预约成本</th>
                                <th>到诊成本</th>
                            </thead>
                            <tbody>
                                {volist name="info" id='bz'}
                                <tr>
                                    <td>{$bz.name}</td>
                                    <td>{$bz.xiaofei}</td>
                                    <td>{$bz.junjia}</td>
                                    <td>{$bz.dianji}</td>
                                    <td>{$bz.zhanxian}</td>
                                    <td>{$bz.dianjilv|toFloat}</td>
                                    <td>{$bz.duihua}</td>
                                    <td>{$bz.youxiao}</td>
                                    <td>{$bz.yuyue}</td>
                                    <td>{$bz.daozheng}</td>
                                    <td>{$bz.dhcb}</td>
                                    <td>{$bz.yycb}</td>
                                    <td>{$bz.dzcb}</td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                    {else /} <a href="{:url('contents/index')}" class="btn btn-success">点击上传</a>
                    {/if}
                </div>

            </div>
            <div class="tab-pane fade" id="nweek">
                <div class="row">
                    <div class="col-xs-12">
                        {// 有值则输出,没有值 不输出}
                        {if condition="$weekinfo"} 
                            <table class="table table-bordered">
                                <thead>
                                    <th>病种</th>
                                    <th>消费</th>
                                    <th>均价</th>
                                    <th>点击量</th>
                                    <th>展现量</th>
                                    <th>点击率</th>
                                    <th>对话</th>
                                    <th>有效对话</th>
                                    <th>预约率</th>
                                    <th>到诊率</th>
                                    <th>对话成本</th>
                                    <th>预约成本</th>
                                    <th>到诊成本</th>
                                </thead>
                                <tbody>
                                    {volist name="weekinfo" id='bz'}
                                    <tr>
                                        <td>{$bz.name}</td>
                                        <td>{$bz.xiaofei}</td>
                                        <td>{$bz.junjia}</td>
                                        <td>{$bz.dianji}</td>
                                        <td>{$bz.zhanxian}</td>
                                        <td>{$bz.dianjilv|toFloat}</td>
                                        <td>{$bz.duihua}</td>
                                        <td>{$bz.youxiao}</td>
                                        <td>{$bz.yuyue}</td>
                                        <td>{$bz.daozheng}</td>
                                        <td>{$bz.dhcb}</td>
                                        <td>{$bz.yycb}</td>
                                        <td>{$bz.dzcb}</td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        {else /} 本周报表
                        {/if}
                        
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="n1">
                <div class="row">
                    <div class="col-xs-12">
                        第一周报表
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="n2">
                <div class="row">
                    <div class="col-xs-12">
                        第二周报表
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="n3">
                <div class="row">
                    <div class="col-xs-12">
                        第三周报表
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="n4">
                <div class="row">
                    <div class="col-xs-12">
                        第四周报表
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="nmonth">
                <div class="row">
                    <div class="col-xs-12">
                        月份报表
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="nall">
                <div class="row">
                    <div class="col-xs-12">
                        汇总报表
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>